﻿

@{
    ViewBag.Title = "支付成功";
    Layout = "~/Views/Home/_HomeLayout.cshtml";
}
@section Head{
    <style type="text/css">
        .dept_select {
            min-width: 200px;
        }
    </style>
}
<div class="container">
    <div class="row clearfix">
        <div class="col-md-2 column">
            <div class="panel-group">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <a class="panel-title" data-toggle="collapse" href="#son1">账号管理</a>
                    </div>
                    <div id="son1" class="panel-collapse in">
                        @*collapse默认关闭*@
                        <div class="panel-body">
                            <div class="bs-example" data-example-id="vertical-button-group">
                                <div class="btn-group-vertical" role="group" aria-label="Vertical button group">
                                    <a href="#" class="btn btn-link">个人信息</a>
                                    <a href="#" class="btn btn-link">修改个人信息</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <a class="panel-title" data-toggle="collapse" href="#son2">购物管理</a>
                    </div>
                    <div id="son2" class="panel-collapse in">
                        <div class="panel-body">
                            <div class="bs-example" data-example-id="vertical-button-group">
                                <div class="btn-group-vertical" role="group" aria-label="Vertical button group">
                                    <a href="@Url.Action("ShopCar","Home")" class="btn btn-link">购物车管理</a>
                                    <a href="@Url.Action("UserOrder","Home")" class="btn btn-link">订单管理</a>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-10 column">
            <div id="Car">
                <div class="modal-body">
                    <div class="panel panel-default">
                        <input type="hidden" value="" id="OrderNumber" />
                        <div class="panel-heading">支付状态</div>
                        <div class="panel-body">
                            支付状态:@ViewBag.IfSuccess
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            订单号
                        </div>
                        <div class="panel-body">
                            订单号为:@ViewBag.OrderNumber
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function showcar()
    {
         $.ajax({
                cache: false,
                type: 'post',
                url: '@Url.Action("_ShopCar")',
                dataType: 'text',
                success: function (data) {
                    $("#Car").html(data);
                },
                error: function () {
                    alert("Ajax调用出错请与管理员联系");
                }
            });
    }
</script>
